package com.ruoyi.order.service.impl;

import com.ruoyi.order.domain.CheEvaluate;
import com.ruoyi.order.mapper.CheEvaluateMapper;
import com.ruoyi.order.service.ICheEvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName CheEvaluateServiceImpl
 * @Description TODO
 * @Author zq
 * @Date 2024年06月11日 21:21
 * @Version 1.0
 */
@Service
public class CheEvaluateServiceImpl implements ICheEvaluateService {
    @Autowired
    private CheEvaluateMapper cheEvaluateMapper;
    @Override
    public Map<Object, Object> selectByShopId(Map map) {
        List<Map<Object, Object>> list = cheEvaluateMapper.findByShopId(map);
        Map<Object,Object> map1 = new HashMap<>();
        map1.put("list",list);
        return map1;
    }

    @Override
    public List<CheEvaluate> getList(CheEvaluate cheEvaluate) {
        List<CheEvaluate> list = cheEvaluateMapper.list(cheEvaluate);
        return list;
    }

    @Override
    public CheEvaluate selectById(Long id) {
        CheEvaluate evaluate = cheEvaluateMapper.selectById(id);
        return evaluate;
    }
}
